<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>人员管理</title>
	
<link rel="stylesheet" type="text/css" href="../../themes/general.css"  />
<!-- <link rel="stylesheet" type="text/css" href="../../themes/demo.css" 	 		/> -->
<link rel="stylesheet" type="text/css" href="../../themes/icon.css" 			/>
<link rel="stylesheet" type="text/css" href="../../themes/jquery-ui.css" 		/>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css" 	/>
<script type="text/javascript" src="../../scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../scripts/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../scripts/src/jquery.parser.js"></script>
<script type="text/javascript" src="../../scripts/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../scripts/sessionExpriation.js"></script>

<script type="text/javascript">

$(function() {
	 		$('#EdituserSex').combobox({
                required:true,
            });
            $('#EditSelectSex').appendTo($('#EdituserSex').combobox('panel'));
            $('#EditSelectSex input').click(function(){
                var v = $(this).val();
                var s = $(this).next('span').text();
                $('#EdituserSex').combobox('setValue', v).combobox('setText', s).combobox('hidePanel');
            });


            $('#AdduserSex').combobox({
                required:true,
            });
            $('#AddSelectSex').appendTo($('#AdduserSex').combobox('panel'));
            $('#AddSelectSex input').click(function(){
                var v = $(this).val();
                var s = $(this).next('span').text();
                $('#AdduserSex').combobox('setValue', v).combobox('setText', s).combobox('hidePanel');
            });


	$('#query_result').datagrid({
			/* collapsible:true, */
			url : '../../people/getAllPeopleUser.ajax',
			pagination : true,
			onDblClickRow : function(rowIndex, rowData) {
				view(rowData);
			}
		});

	$('#btn_query').bind('click', function() {
			//点查询钮查询时总是以第一页开始 
			$(page).pagination('select', 1);
		});
	var page = $('#query_result').datagrid('getPager');
	$('#btn_reset').bind('click', function() {
			$('#query_form').form('clear');
			$('#qualityBeginTime').datebox('setValue', '1900-01-01');
			$('#qualityEndTime').datebox('setValue', '3000-01-01');
			$('#query_result').datagrid('loadData', {
				total : 0,
				rows : []
			});
		});

	$(page).pagination({
			onBeforeRefresh : function() {//刷新按钮点击之前触发，返回 false 就取消刷新动作。
			},
			onRefresh : function(pageNumber, pageSize) {//刷新之后触发。

				do_submit(pageNumber, pageSize)
			},
			onChangePageSize : function() {//当用户改变页面尺寸时触发。
			},
			onSelectPage : function(pageNumber, pageSize) {//当用户选择新的页面时触发。回调函数包含两个参数：pageNumber：新的页码  pageSize：新的页面尺寸

				do_submit(pageNumber, pageSize);
			}
		});
	});
	function do_submit(pageNumber, pageSize) {
		$('#query_form').form('submit', {
			/* url : '../../people/queryPeople.ajax', */

			onSubmit : function(param) {
				/* alert(param.qualityBeginTime); */
				/* alert(param.qualityEndTime); */
				param.paging = true;
				param.offset = (pageNumber - 1) * pageSize;
				param.limit = pageSize;
				return $(this).form('validate');
			},

			success : function(data) {
				var obj = $.parseJSON(data);
				$('#query_result').datagrid('loadData', obj)
			}
		});
	}

	function view(row) {
		$('#ViewWindow').window('open').window('refresh');
		if(row.status=="O"){row.status="正常"}else if(row.status=="C"){row.status="关闭"}else if(row.status=="L"){row.status="锁定"}else if(row.status=="E"){row.status="超过有效期"};
		$('#query_form_View').form('load', row);
		/* $('#qualityName').attr('disabled',true); */
		/* $('#qualityName').validatebox('disabled',true); */
		/*   $('input').attr("readonly", "readonly");   */
		/*  $('#qualityEndTime').validatebox("readonly", "readonly"); */

		/* parent.addTabWithIcon("项目详述", "./people/view.html?msgId="+peoId, "icon-list"); */
	}
	//打开新页面修改
	function edit(row) {
		$('#EditWindow').window('open').window('refresh');
		if(row.status=="O"){row.status="正常"}else if(row.status=="C"){row.status="关闭"}else if(row.status=="L"){row.status="锁定"}else if(row.status=="E"){row.status="超过有效期"};
		$('#query_form_Edit').form('load', row);

	}

	function do_view() {
		var row = $('#query_result').datagrid('getSelected');//返回第一个选中的行
		if (row == null) {
			$.messager.alert('Info', '请选择行', 'info');
			return;
		}
		view(row);
	}

	function do_edit() {
		var row = $('#query_result').datagrid('getSelected');
		if (row == null) {
			$.messager.alert('Info', '请选择行', 'info');
			return;
		}
		edit(row);
	}

	function do_remove() {
		var row = $('#query_result').datagrid('getSelected');
		if (row == null) {
			$.messager.alert('Info', '请选择行', 'info');
			return;
		}
		RemovePeopleWindow(row);
	}

	function formatUserWorkStatus(val, row) {
		if (val == "O") {
			return '<span style="color:green">正常</span>';
		} else if (val == "C") {
			return '<span style="color:red">关闭</span>';
		} else if (val == "L") {
			return '<span style="color:blue">锁定</span>';
		} else if (val == "E") {
			return '<span style="color:orange">超过有效期</span>';
		}
	}
function formatPeopleWorkStatus(val, row) {
		if (val == "在岗") {
			return '<span style="color:green">在岗</span>';
		} else if (val == "离职") {
			return '<span style="color:red">离职</span>';
		} else if (val == "待岗") {
			return '<span style="color:blue">待岗</span>';
		} else if (val == "备用") {
			return '<span style="color:orange">备用</span>';
		}
	}
	 function RemovePeopleWindow(row){
		$.messager.confirm('确认','您确认想要开除职员<span style="color:red">  '+row.peoName+'  </span>吗？',function(r){    
    		if (r){    
        		 $.ajax({     
		        url : '../../people/RemovePeopleData.ajax',//ajax地址待修改
				type : 'post',
				dataType : 'JSON',
				data : {
					peoId : row.peoId //给你的目前的名字待修改
				},
				error: function(XMLHttpRequest, textStatus, errorThrown) {
	                    
	        	},
				success : function(data) {
					/* var obj = $.parseJSON(data);//将json字符串转换为object对象 */
				if (data.success) {
					 
					/* location.reload();//强迫浏览器刷新当前页面 */
					$.messager.alert('提示', data.message, 'info', function() {
						$('#query_result').datagrid({url : '../../people/getAllPeopleUser.ajax'});
						
					});
				} else {
					$.messager.alert('错误', data.message, 'error');
				}
				}    
		}); 
		} 
	});
	} 
	//打开新增人员信息的窗口
	function AddPeopleWindow() {
		$('#AddWindow').window('open').window('refresh');
	}
	//关闭查看人员信息窗口
	function ViewWindowClose() {
		/* $('input').removeAttr("readonly"); */
		$('#ViewWindow').window('close');
	}
	//关闭新增人员信息窗口
	function AddWindowClose() {
		$('#AddWindow').window('close');
	}
	//关闭修改人员信息窗口
	function EditWindowClose() {
		$('#EditWindow').window('close');
	}

</script>
  </head>
 
  <body>
   	
 <div style="margin: 5px 0"></div>
<div style="margin: 0 5px">
<form id="query_form" method="post">
	<table class="table_view" style="font-size: 12px; background: #F1F1F1;">
	<tr>
		<td class="td_view_name_people">员工编号</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" id="peoJobNum" name="peoJobNum" /></td>
		<td class="td_view_name_people">姓名</td>
		<td class="td_view_value_people" ><input class="easyui-validatebox input_140" type="text" id="qualityName" name="qualityName" /></td>
		<td class="td_view_name_people">性别</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" type="text" id="qualityEvectionLocation" name="qualityEvectionLocation" /></td>
		
	</tr>
	<tr>
 
		<td class="td_view_name_people">单位名称</td>							
		<td class="td_view_value_people"><input class="easyui-combobox" id="qualityEvectionDesc" name="qualityEvectionDesc" /></td>	
		<td class="td_view_name_people">职务</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" type="text" id="qualityEvectionLocation" name="qualityEvectionLocation" /></td>	
	</tr>

	<tr>
		<td colspan="6" align="center" class="td_view_name">
			<div align="center">
				<a id="btn_query" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"	>查询</a>
				<a id="btn_reset" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-reset" 	>重置</a>
			</div>
		</td>
	</tr>
	</table>
</form>
</div>


<div style="margin: 10px 0;"></div>
	<div style="margin: 0 5px">
		<table title="查询结果" id="query_result" 
			data-options="singleSelect:true,pagination:true,rownumbers:true,pageNumber:1,pageSize:10,pageList:[1,5,10]"
			toolbar="#tb" >
			<thead>
				<tr>
					<th field="ck" checkbox="true"></th>
					<th data-options="field:'peoId',width:80,hidden:false,align:'center',sortable:'true'">人员ID</th>
					<th data-options="field:'peoJobNum',width:80,hidden:false,align:'center',sortable:'true'">员工编号</th>
					<th data-options="field:'userLoginName',width:80,hidden:false,align:'center',sortable:'true'">用户名</th>
					<th data-options="field:'peoName',width:80,hidden:false,align:'center',sortable:'true'">人员表姓名</th>
					<th data-options="field:'peoStationDesc',width:100,hidden:false,align:'center',sortable:'true',formatter:formatPeopleWorkStatus">岗位状态</th>
					<th data-options="field:'userId',width:100,hidden:false,align:'center',sortable:'true'">用户名表ID</th>
					<th data-options="field:'userName',width:80,hidden:false,align:'center',sortable:'true'">用户表姓名</th>
					<th data-options="field:'status',width:80,hidden:false,align:'center',sortable:'true',formatter:formatUserWorkStatus">用户表状态</th>
					<th data-options="field:'userUnit',width:100,hidden:false,align:'center',sortable:'true'">单位名称</th>
					<th data-options="field:'userSex',width:100,hidden:false,align:'center',sortable:'true'">性别</th>
					<th data-options="field:'userRoleId',width:100,hidden:false,align:'center',sortable:'true'">用户角色表ID</th>	
					<th data-options="field:'roleId',width:80,hidden:false,align:'center',sortable:'true'">角色ID</th>
					<th data-options="field:'roleDesc',width:80,hidden:false,align:'center',sortable:'true'">职务</th>
					<th data-options="field:'roleStatus',width:80,hidden:false,align:'center',sortable:'true'">角色是否关闭</th>					
					
					<th data-options="field:'peoContel',width:100,hidden:false,align:'center',sortable:'true'">联系电话</th>
					<th data-options="field:'mobile',width:100,hidden:false,align:'center',sortable:'true'">用户表联系电话</th>
					<th data-options="field:'email',width:150,hidden:false,align:'center',sortable:'true'">email</th>
					<th data-options="field:'userIdentityCard',width:160,hidden:false,align:'center',sortable:'true'">身份证号码</th>
					<th data-options="field:'peoNote',width:150,hidden:false,align:'center',sortable:'true'">备注</th>
					<th data-options="field:'memo',width:150,hidden:false,align:'center',sortable:'true'">用户表备注</th>
				</tr>
			</thead>
		</table>

		<div id="tb">
			<div id="divBtnAdd" style="float: left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add"
					plain="true" onclick="javascript:AddPeopleWindow()">添加人员信息</a>
			</div>
			<div id="divBtnView" style="float:left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-view"
					plain="true" onclick="javascript:do_view()">查看人员信息</a>
			</div>
			<div id="divBtnEdit" style="float: left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-edit"
					plain="true" onclick="javascript:do_edit()">修改人员信息</a>
			</div>
			<div id="divBtnEdit" style="float: left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-remove"
					plain="true" onclick="javascript:do_remove()">人员离职按钮 </a>
			</div>
			
		</div>
	</div>


	<!-- 查看人员信息窗口 -->
	<div id="ViewWindow" class="easyui-window" title="查看人员信息"
		data-options="collapsible:false,closable:false,minimizable:false,maximizable:false,modal:true,closed:true,iconCls:'icon-view'"
		style="width:700px;height:460px;padding:10px;">
		<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding:10px;">
				<form id="query_form_View" method="post">
					<table class="table_view">
						
						<tr>	
							<td class="td_view_name" hidden="true">人员ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewpeoId" name="peoId"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">用户名表ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewuserId" name="userId"  readonly = "true"/></td>
						</tr>

						<tr>	
							<td class="td_view_name" hidden="true">用户角色表ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewuserRoleId" name="userRoleId"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">角色ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewroleId" name="roleId"  readonly = "true"/></td>
						</tr>

						<tr>	
							<td class="td_view_name" hidden="true">用户表姓名</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewuserName" name="userName"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">用户表备注</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Viewmemo" name="memo"  readonly = "true"/></td>
						</tr>
						
						<tr>	
							<td class="td_view_name" hidden="true">用户表联系电话</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Viewmobile" name="mobile"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">角色是否关闭</td>
							<td class="td_view_value" hidden="true"><input  type="text"
								class="easyui-validatebox input_140" id="ViewroleStatus"
								name="roleStatus"   readonly = "true"/></td>							
						</tr>

						<tr>	
							<td class="td_view_name">员工编号</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewpeoJobNum" name="peoJobNum"  readonly = "true"/></td>
							<td class="td_view_name">姓名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewpeoName" name="peoName"  readonly = "true"/></td>
						</tr>
						
						<tr>
							<td class="td_view_name">性别</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="ViewuserSex"
								name="userSex" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>
							<td class="td_view_name">岗位状态</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewpeoStationDesc" name="peoStationDesc"  readonly = "true"/></td>	 											
						</tr>

						<tr>	
							<td class="td_view_name">用户名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewuserLoginName" name="userLoginName"  readonly = "true"/></td>
							<td class="td_view_name">单位名称</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewuserUnit" name="userUnit"  readonly = "true"/></td>
						</tr>						
	
						<tr>
							<td class="td_view_name">职务</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="ViewroleDesc" name="roleDesc"  readonly = "true"/></td>							
							<td class="td_view_name">身份证号码</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="ViewuserIdentityCard"
								name="userIdentityCard"   readonly = "true"/></td>	
						</tr>

						<tr>							
							<td class="td_view_name">联系电话</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="ViewpeoContel"
								name="peoContel" validType="peoContel"  readonly = "true"/></td>
							<td class="td_view_name">email</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="Viewemail"
								name="email" validType="email"  readonly = "true"/></td>			
						</tr>
						
						<tr>
							<td class="td_view_name">用户表状态</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Viewstatus" name="status"  readonly = "true"/></td>								
							<td class="td_view_name">备注</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="ViewpeoNote"
								name="peoNote"   readonly = "true"/></td>
						</tr>						
					</table>
				</form>
			</div>
			<div data-options="region:'south',border:false"
				style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
					onclick="ViewWindowClose()" style="width:80px">关闭</a>
			</div>
		</div>
	</div>

	<!-- 修改人员信息窗口 -->
	<div id="EditWindow" class="easyui-window" title="修改人员信息"
		data-options="collapsible:false,closable:false,minimizable:false,maximizable:false,modal:true,closed:true,iconCls:'icon-Edit'"
		style="width:700px;height:460px;padding:10px;">
		<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding:10px;">
				<form id="query_form_Edit" method="post">
					<table class="table_view">
						
						<tr>	
							<td class="td_view_name" hidden="true">人员ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EditpeoId" name="peoId"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">用户名表ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EdituserId" name="userId"  readonly = "true"/></td>
						</tr>

						<tr>	
							<td class="td_view_name" hidden="true">用户角色表ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EdituserRoleId" name="userRoleId"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">角色ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EditroleId" name="roleId"  readonly = "true"/></td>
						</tr>

						<tr>	
							<td class="td_view_name" hidden="true">用户表姓名</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EdituserName" name="userName"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">用户表备注</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Editmemo" name="memo"  readonly = "true"/></td>
						</tr>
						
						<tr>	
							<td class="td_view_name" hidden="true">用户表联系电话</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Editmobile" name="mobile"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">角色是否关闭</td>
							<td class="td_view_value" hidden="true"><input  type="text"
								class="easyui-validatebox input_140" id="EditroleStatus"
								name="roleStatus"   readonly = "true"/></td>							
						</tr>

						<tr>	
							<td class="td_view_name">员工编号</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EditpeoJobNum" name="peoJobNum"  readonly = "true"/></td>
							<td class="td_view_name">姓名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EditpeoName" name="peoName"  readonly = "true"/></td>
						</tr>
						
						<tr>
							<td class="td_view_name">性别</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="EdituserSex"
								name="userSex" data-options="panelHeight:'auto'" />
							<div id="EditSelectSex">
	        					<div style="line-height:22px;background:#fafafa;padding:5px;">选择一个性别</div>
						        <div style="padding:10px">
						            <input type="radio" name="lang" value="01"><span>男</span><br/>
						            <input type="radio" name="lang" value="02"><span>女</span><br/>
						        </div>
					    	</div>	 </td>	
							<td class="td_view_name">岗位状态</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EditpeoStationDesc" name="peoStationDesc"  readonly = "true"/></td>									
						</tr>

						<tr>	
							<td class="td_view_name">用户名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EdituserLoginName" name="userLoginName"  readonly = "true"/></td>
							<td class="td_view_name">单位名称</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EdituserUnit" name="userUnit"  readonly = "true"/></td>
						</tr>						
	
						<tr>
							<td class="td_view_name">职务</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="EditroleDesc" name="roleDesc"  readonly = "true"/></td>
							<td class="td_view_name">身份证号码</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="EdituserIdentityCard"
								name="userIdentityCard"   readonly = "true"/></td>								
						</tr>

						<tr>
							<td class="td_view_name">联系电话</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="EditpeoContel"
								name="peoContel" validType="peoContel"  readonly = "true"/></td>
							<td class="td_view_name">email</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="Editemail"
								name="email" validType="email"  readonly = "true"/></td>											
						</tr>
						
						<tr>
							<td class="td_view_name">用户表状态</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Editstatus" name="status"  readonly = "true"/></td>							
							<td class="td_view_name">备注</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="EditpeoNote"
								name="peoNote"   readonly = "true"/></td>
						</tr>						
					</table>
				</form>
			</div>
			<div data-options="region:'south',border:false"
				style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-ok'" href="javascript:void(0)"
					onclick="EditPeopleData()" style="width:80px">确认</a>
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
					onclick="EditWindowClose()" style="width:80px">取消</a>
			</div>
		</div>
	</div>

	<!-- 新增人员信息窗口 -->
	<div id="AddWindow" class="easyui-window" title="新增人员信息"
		data-options="collapsible:false,closable:false,minimizable:false,maximizable:false,modal:true,closed:true,iconCls:'icon-Add'"
		style="width:700px;height:460px;padding:10px;">
		<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding:10px;">
				<form id="query_form_Add" method="post">
					<table class="table_view">
						
						<tr>	
							<td class="td_view_name" hidden="true">人员ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoId" name="peoId"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">用户名表ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AdduserId" name="userId"  readonly = "true"/></td>
						</tr>

						<tr>	
							<td class="td_view_name" hidden="true">用户角色表ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AdduserRoleId" name="userRoleId"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">角色ID</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddroleId" name="roleId"  readonly = "true"/></td>
						</tr>

						<tr>	
							<td class="td_view_name" hidden="true">用户表姓名</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AdduserName" name="userName"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">用户表备注</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Addmemo" name="memo"  readonly = "true"/></td>
						</tr>
						
						<tr>	
							<td class="td_view_name" hidden="true">用户表联系电话</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Addmobile" name="mobile"  readonly = "true"/></td>
							<td class="td_view_name" hidden="true">角色是否关闭</td>
							<td class="td_view_value" hidden="true"><input  type="text"
								class="easyui-validatebox input_140" id="AddroleStatus"
								name="roleStatus"   readonly = "true"/></td>							
						</tr>

						<tr>	
							<td class="td_view_name">员工编号</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoJobNum" name="peoJobNum"  readonly = "true"/></td>
							<td class="td_view_name">姓名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoName" name="peoName"  readonly = "true"/></td>
						</tr>
						
						<tr>
							<td class="td_view_name">性别</td>
							<td class="td_view_value"><input
								 id="AdduserSex" class="easyui-combobox"
								 name="userSex" data-options="panelHeight:'auto'" />
							<div id="AddSelectSex">
	        					<div style="line-height:22px;background:#fafafa;padding:5px;">选择一个性别</div>
						        <div style="padding:10px">
						            <input type="radio" name="lang" value="01"><span>男</span><br/>
						            <input type="radio" name="lang" value="02"><span>女</span><br/>
						        </div>
					    	</div>	 </td>		
							<td class="td_view_name">岗位状态</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoStationDesc" name="peoStationDesc"  readonly = "true"/></td>									
						</tr>

						<tr>	
							<td class="td_view_name">用户名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AdduserLoginName" name="userLoginName"  readonly = "true"/></td>
							<td class="td_view_name">单位名称</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AdduserUnit" name="userUnit"  readonly = "true"/></td>
						</tr>						
	
						<tr>
							<td class="td_view_name">职务</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddroleDesc" name="roleDesc"  readonly = "true"/></td>
							<td class="td_view_name">身份证号码</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AdduserIdentityCard"
								name="userIdentityCard"   readonly = "true"/></td>								
						</tr>

						<tr>
							<td class="td_view_name">联系电话</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoContel"
								name="peoContel" validType="peoContel"  readonly = "true"/></td>
							<td class="td_view_name">email</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="Addemail"
								name="email" validType="email"  readonly = "true"/></td>											
						</tr>
						
						<tr>
							<td class="td_view_name">用户表状态</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="Addstatus" name="status"  readonly = "true"/></td>							
							<td class="td_view_name">备注</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoNote"
								name="peoNote"   readonly = "true"/></td>
						</tr>						
					</table>
				</form>
			</div>
			<div data-options="region:'south',border:false"
				style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-ok'" href="javascript:void(0)"
					onclick="AddPeopleData()" style="width:80px">确认</a>
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
					onclick="AddWindowClose()" style="width:80px">取消</a>
			</div>
		</div>
	</div>
  </body>
</html>
